﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MTO.Framework.Common.DataAnnotations
{
    public class ValidationException : Exception
    {
        public ValidationException(IEnumerable<ValidationResult> validationResults)
        {
            this.ValidationResults = validationResults;
        }

        public IEnumerable<ValidationResult> ValidationResults { get; private set; }
    }
}
